3.2.95 \(\int \frac {x}{\sqrt {-4+12 x-9 x^2}} \, dx\)

Optimal. Leaf size=48 \[ -\frac {1}{9} \sqrt {-9 x^2+12 x-4}-\frac {2 (2-3 x) \log (2-3 x)}{9 \sqrt {-9 x^2+12 x-4}} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {640, 608, 31} \begin {gather*} -\frac {1}{9} \sqrt {-9 x^2+12 x-4}-\frac {2 (2-3 x) \log (2-3 x)}{9 \sqrt {-9 x^2+12 x-4}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x/Sqrt[-4 + 12*x - 9*x^2],x]

[Out]

-Sqrt[-4 + 12*x - 9*x^2]/9 - (2*(2 - 3*x)*Log[2 - 3*x])/(9*Sqrt[-4 + 12*x - 9*x^2])

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 608

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[(b/2 + c*x)/Sqrt[a + b*x + c*x^2], Int[1/(b/2
+ c*x), x], x] /; FreeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0]

Rule 640

Int[((d_.) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(e*(a + b*x + c*x^2)^(p +
 1))/(2*c*(p + 1)), x] + Dist[(2*c*d - b*e)/(2*c), Int[(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}
, x] && NeQ[2*c*d - b*e, 0] && NeQ[p, -1]

Rubi steps

\begin {align*} \int \frac {x}{\sqrt {-4+12 x-9 x^2}} \, dx &=-\frac {1}{9} \sqrt {-4+12 x-9 x^2}+\frac {2}{3} \int \frac {1}{\sqrt {-4+12 x-9 x^2}} \, dx\\ &=-\frac {1}{9} \sqrt {-4+12 x-9 x^2}+\frac {(2 (6-9 x)) \int \frac {1}{6-9 x} \, dx}{3 \sqrt {-4+12 x-9 x^2}}\\ &=-\frac {1}{9} \sqrt {-4+12 x-9 x^2}-\frac {2 (2-3 x) \log (2-3 x)}{9 \sqrt {-4+12 x-9 x^2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 35, normalized size = 0.73 \begin {gather*} \frac {(3 x-2) (3 x+2 \log (2-3 x)-2)}{9 \sqrt {-(2-3 x)^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x/Sqrt[-4 + 12*x - 9*x^2],x]

[Out]

((-2 + 3*x)*(-2 + 3*x + 2*Log[2 - 3*x]))/(9*Sqrt[-(2 - 3*x)^2])

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.11, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt {-4+12 x-9 x^2}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x/Sqrt[-4 + 12*x - 9*x^2],x]

[Out]

Defer[IntegrateAlgebraic][x/Sqrt[-4 + 12*x - 9*x^2], x]

________________________________________________________________________________________

fricas [C]  time = 0.42, size = 10, normalized size = 0.21 \begin {gather*} -\frac {1}{3} i \, x - \frac {2}{9} i \, \log \left (x - \frac {2}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(-(-2+3*x)^2)^(1/2),x, algorithm="fricas")

[Out]

-1/3*I*x - 2/9*I*log(x - 2/3)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \mathit {undef} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(-(-2+3*x)^2)^(1/2),x, algorithm="giac")

[Out]

undef

________________________________________________________________________________________

maple [A]  time = 0.12, size = 31, normalized size = 0.65 \begin {gather*} \frac {\left (3 x -2\right ) \left (3 x +2 \ln \left (3 x -2\right )\right )}{9 \sqrt {-\left (3 x -2\right )^{2}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(-(3*x-2)^2)^(1/2),x)

[Out]

1/9*(3*x-2)*(3*x+2*ln(3*x-2))/(-(3*x-2)^2)^(1/2)

________________________________________________________________________________________

maxima [C]  time = 2.92, size = 21, normalized size = 0.44 \begin {gather*} -\frac {1}{9} \, \sqrt {-9 \, x^{2} + 12 \, x - 4} + \frac {2}{9} i \, \log \left (x - \frac {2}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(-(-2+3*x)^2)^(1/2),x, algorithm="maxima")

[Out]

-1/9*sqrt(-9*x^2 + 12*x - 4) + 2/9*I*log(x - 2/3)

________________________________________________________________________________________

mupad [B]  time = 0.27, size = 36, normalized size = 0.75 \begin {gather*} -\frac {\sqrt {-9\,x^2+12\,x-4}}{9}-\frac {\ln \left (x-\frac {2}{3}-\frac {\sqrt {-{\left (3\,x-2\right )}^2}\,1{}\mathrm {i}}{3}\right )\,2{}\mathrm {i}}{9} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(-(3*x - 2)^2)^(1/2),x)

[Out]

- (log(x - ((-(3*x - 2)^2)^(1/2)*1i)/3 - 2/3)*2i)/9 - (12*x - 9*x^2 - 4)^(1/2)/9

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt {- \left (3 x - 2\right )^{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(-(-2+3*x)**2)**(1/2),x)

[Out]

Integral(x/sqrt(-(3*x - 2)**2), x)

________________________________________________________________________________________